import React, { useState, useEffect } from 'react'
import './list.scss'
import { UploadOutlined } from '@ant-design/icons';
import { Button, Space, Upload } from 'antd';

function list() {
  const fileUrl = ''; // 文件的URL 
  return (
    <div className='listBox'>
      <Upload
        action="https://660d2bd96ddfa2943b33731c.mockapi.io/api/upload"
        listType="picture"
        maxCount={1}
      >
        <Button icon={<UploadOutlined />}>上传</Button>
      </Upload>
      <a href={fileUrl} download="image.png">
        下载文件
      </a>
    </div>
  )
}

export default list
